<?php
class CMS_Models_ContentCategory extends Zend_Db_Table_Abstract
{
    protected $_name = "content_category";

    public function __construct( )
    {
        parent::__construct(array('table' =>$this->_name));
    }

    public function getAll()
    {
      $contact = $this->fetchAll(array(),"orden" );
   	  return $contact;
    }

    public function getCategoryById($id)
    {
      	$category = $this->fetchRow("id = '$id'");
      	return $category;
    }
}